package com.yijdn.system.controller;


import com.yijdn.system.service.MemuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zww
 * @since 2018-03-25
 */
@RestController
@RequestMapping("/system/memu")
public class MemuController {

    @Autowired
    private MemuService memuService;

    /**
     * 获取所有的数据
     * @return
     */
    @RequestMapping(value = "/listAll.json",method = RequestMethod.GET)
    public Object listAll(){
        return memuService.selectList(null);
    }
}

